package com.swust.ipmsg.util;

public class IPMsg {
	/*    @(#)Copyright (C) H.Shirouzu 1996-1998 ipmsg.h    Ver1.34 */

//	#ifndef IPMSG_H
//	public static final long IPMSG_H

	/* IP Messenger Communication Protocol version 1.0 define */
	/* macro */
	public static final long GET_MODE = 0;//(command)(command & 0x000000ff);
	public static final long GET_OPT = 0;//(command)    (command & 0xffffff00;)

	/* header */
	public static final String IPMSG_VERSION = "3.1.8";//协议版本号。
	public static final String IPMSG_TERMINAL_VERSION = "Android";//终端版本号。
	public static final int IPMSG_DEFAULT_PORT = 0x0979;//默认端口2425。

	/* command */
	public static final long IPMSG_NOOPERATION = 0x00000000L;

	public static final long IPMSG_BR_ENTRY = 0x00000001L;
	public static final long IPMSG_BR_EXIT = 0x00000002L;
	public static final long IPMSG_ANSENTRY = 0x00000003L;
	public static final long IPMSG_BR_ABSENCE = 0x00000004L;

	public static final long IPMSG_BR_ISGETLIST = 0x00000010L;
	public static final long IPMSG_OKGETLIST = 0x00000011L;
	public static final long IPMSG_GETLIST = 0x00000012L;
	public static final long IPMSG_ANSLIST = 0x00000013L;
	public static final long IPMSG_FILE_MTIME = 0x00000014L;
	public static final long IPMSG_FILE_CREATETIME = 0x00000016L;
	public static final long IPMSG_BR_ISGETLIST2 = 0x00000018L;

	public static final long IPMSG_SENDMSG = 0x00000020L;
	public static final long IPMSG_RECVMSG = 0x00000021L;
	public static final long IPMSG_READMSG = 0x00000030L;
	public static final long IPMSG_DELMSG = 0x00000031L;

	/* option for all command */
	public static final long IPMSG_ABSENCEOPT = 0x00000100L;
	public static final long IPMSG_SERVEROPT = 0x00000200L;
	public static final long IPMSG_DIALUPOPT = 0x00010000L;
	public static final long IPMSG_FILEATTACHOPT = 0x00200000L;

	/* file types for fileattach command */
	public static final long IPMSG_FILE_REGULAR = 0x00000001L;
	public static final long IPMSG_FILE_DIR = 0x00000002L;
	public static final long IPMSG_LISTGET_TIMER = 0x0104L;
	public static final long IPMSG_LISTGETRETRY_TIMER = 0x0105L;
	
	/* the new conmmand*/
	public static final long IPMSG_NEW_BR_ENTRY = 0x00000401L;
	public static final long IPMSG_NEW_BR_EXIT = 0x00000402L;
	public static final long IPMSG_NEW_ANSENTRY = 0x00000403L;
	public static final long IPMSG_NEW_BR_ABSENCE = 0x00000404L;

	public static final long IPMSG_NEW_BR_ISGETLIST = 0x00000410L;
	public static final long IPMSG_NEW_OKGETLIST = 0x00000411L;
	public static final long IPMSG_NEW_GETLIST = 0x00000412L;
	public static final long IPMSG_NEW_ANSLIST = 0x00000413L;
	public static final long IPMSG_NEW_FILE_MTIME = 0x00000414L;
	public static final long IPMSG_NEW_FILE_CREATETIME = 0x00000416L;
	public static final long IPMSG_NEW_BR_ISGETLIST2 = 0x00000418L;

	public static final long IPMSG_NEW_SENDMSG = 0x00000420L;
	public static final long IPMSG_NEW_RECVMSG = 0x00000421L;
	public static final long IPMSG_NEW_READMSG = 0x00000430L;
	public static final long IPMSG_NEW_DELMSG = 0x00000431L;

	/* option for all command */
	public static final long IPMSG_NEW_ABSENCEOPT = 0x00000100L;
	public static final long IPMSG_NEW_SERVEROPT = 0x00000200L;
	public static final long IPMSG_NEW_DIALUPOPT = 0x00010000L;
	public static final long IPMSG_NEW_FILEATTACHOPT = 0x00200000L;

	/* file types for fileattach command */
	public static final long IPMSG_NEW_FILE_REGULAR = 0x00000401L;
	public static final long IPMSG_NEW_FILE_DIR = 0x00000402L;
	public static final long IPMSG_NEW_LISTGET_TIMER = 0x0104L;
	public static final long IPMSG_NEW_LISTGETRETRY_TIMER = 0x0105L;

	public static String HS_TOOLS = "HSTools";
	public static String IP_MSG = "IPMsg";
	public static String NO_NAME = "no_name";
	public static String URL_STR = "://";
	public static String MAILTO_STR = "mailto:";
	//#endif/* IPMSG_H */




}
